import Layout from "@/page/index/";

export default [
  {
    path: "/wel",
    component: Layout,
    redirect: "/wel/index",
    children: [
      {
        path: "index",
        name: "首页",
        meta: {
          i18n: "dashboard",
        },
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/wel/index"),
      },
    ],
  },
  {
    path: "/userManagement",
    name: "用户管理",
    component: Layout,
    redirect: "/userManagement/list",
    children: [
      {
        path: "list",
        name: "用户列表",
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/userManagement/list"),
      },
      {
        path: "detail",
        name: "详情",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/userManagement/detail"
          ),
      },
      {
        path: "auditDetail",
        name: "审核",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/userManagement/auditDetail"
          ),
      },
    ],
  },
  {
    path: "/carOwner",
    name: "车主认证",
    component: Layout,
    redirect: "/carOwner/list",
    children: [
      {
        path: "list",
        name: "车主认证列表",
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/carOwner/list"),
      },
      {
        path: "detail",
        name: "详情",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/carOwner/detail"
          ),
      },
      {
        path: "audit",
        name: "审核",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/carOwner/audit"
          ),
      },
    ],
  },
  {
    path: "/itineraryManagement",
    name: "行程管理",
    component: Layout,
    redirect: "/itineraryManagement/list",
    children: [
      {
        path: "list",
        name: "行程列表",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/itineraryManagement/list"
          ),
      },
      {
        path: "detail",
        name: "详情",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/itineraryManagement/detail"
          ),
      },
    ],
  },
  {
    path: "/coupon",
    name: "优惠券包管理",
    component: Layout,
    redirect: "/coupon/list",
    children: [
      {
        path: "list",
        name: "优惠券列表",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/coupon/list"
          ),
      },
      {
        path: "ownerCouponList",
        name: "车主优惠券列表",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/coupon/ownerCouponList"
          ),
      },
      {
        path: "detail",
        name: "优惠券详情",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/coupon/detail"
          ),
      },
    ],
  },
  {
    path: "/src/views/complaint",
    name: "投诉管理",
    component: Layout,
    redirect: "/src/views/complaint/comList",
    children: [
      {
        path: "comList",
        name: "投诉列表",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/complaint/comList"
          ),
      },
    ],
  },
  {
    path: "/pathMannage",
    name: "线路管理",
    component: Layout,
    redirect: "/pathMannage/list",
    children: [
      {
        path: "list",
        name: "线路管理列表",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/pathMannage/list"
          ),
      },
    ],
  },
  {
    path: "/banners",
    name: "banner管理",
    component: Layout,
    redirect: "/banners/bannerList",
    children: [
      {
        path: "bannerList",
        name: "banner管理列表",
        component: () =>
          import(
            /* webpackChunkName: "views" */ "@/views/banners/bannerList"
          ),
      },
    ],
  },
  // {
  //   path: "/usedCar",
  //   name: "二手车管理",
  //   component: Layout,
  //   redirect: "/usedCar/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "二手车列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/usedCar/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/brand",
  //   name: "品牌管理",
  //   component: Layout,
  //   redirect: "/brand/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "品牌管理列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/brand/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/productCategory",
  //   name: "商品分类管理",
  //   component: Layout,
  //   redirect: "/productCategory/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "商品分类管理列表",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "views" */ "@/views/productCategory/list"
  //         ),
  //     },
  //   ],
  // },

  // {
  //   path: "/shop",
  //   name: "店铺管理",
  //   component: Layout,
  //   redirect: "/shop/list",
  //   component: () =>
  //     import(/* webpackChunkName: "views" */ "@/views/productCategory/list"),
  //   children: [
  //     // {
  //     //   path: "list",
  //     //   name: "商品分类管理列表",
  //     //   component: () =>
  //     //     import(/* webpackChunkName: "views" */ "@/views/productCategory/list"),
  //     // },
  //   ],
  // },
  // {
  //   path: "/productOrderRefund",
  //   name: "装备超市订单退款管理",
  //   component: Layout,
  //   redirect: "/productOrderRefund/list",
  //   component: () =>
  //     import(/* webpackChunkName: "views" */ "@/views/productOrderRefund/list"),
  //   children: [],
  // },
  // {
  //   path: "/productOrder",
  //   name: "装备超市订单管理",
  //   component: Layout,
  //   redirect: "/productOrder/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "订单列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/productOrder/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/bicycleMarketOrder",
  //   name: "单车超市订单管理",
  //   component: Layout,
  //   redirect: "/bicycleMarketOrder/list",
  //   component: () =>
  //     import(/* webpackChunkName: "views" */ "@/views/bicycleMarketOrder/list"),
  //   children: [],
  // },
  // {
  //   path: "/product",
  //   name: "商品管理",
  //   component: Layout,
  //   redirect: "/product/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "商品管理列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/product/list"),
  //     },
  //     {
  //       path: "update",
  //       name: "商品管理",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "views" */ "@/views/product/components/SkuManagement"
  //         ),
  //     },
  //   ],
  // },
  // {
  //   path: "/orderRefundReason",
  //   name: "退款原因管理",
  //   component: Layout,
  //   redirect: "/orderRefundReason/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "退款原因列表",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "views" */ "@/views/orderRefundReason/list"
  //         ),
  //     },
  //   ],
  // },
  // {
  //   path: "/config",
  //   name: "配置管理",
  //   component: Layout,
  //   redirect: "/config/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "配置管理列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/config/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/purchase",
  //   name: "采购",
  //   component: Layout,
  //   redirect: "/purchase/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "采购单列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/purchase/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/dynamics",
  //   name: "动态",
  //   component: Layout,
  //   redirect: "/dynamics/list",
  //   component: () =>
  //     import(/* webpackChunkName: "views" */ "@/views/dynamics/list"),
  //   children: [],
  // },
  // {
  //   path: "/system",
  //   name: "系统管理",
  //   component: Layout,
  //   redirect: "/system/account",
  //   children: [
  //     {
  //       path: "account",
  //       name: "用户管理",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "views" */ "@/views/systemManage/systemUserManage/systemUserList"
  //         ),
  //     },
  //     {
  //       path: "applicants",
  //       name: "报名人列表",
  //       component: () =>
  //         import(
  //           /* webpackChunkName: "views" */ "@/views/systemManage/systemUserManage/applicantsList"
  //         ),
  //     },
  //   ],
  // },
  // {
  //   path: "/club",
  //   name: "俱乐部管理",
  //   component: Layout,
  //   redirect: "/club/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "俱乐部列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/club/list"),
  //     },
  //     {
  //       path: "members",
  //       name: "俱乐部成员",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/club/membersList"),
  //     },
  //   ],
  // },
  // {
  //   path: "/label",
  //   name: "标签管理",
  //   component: Layout,
  //   redirect: "/label/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "标签列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/label/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/activity",
  //   name: "活动",
  //   component: Layout,
  //   redirect: "/activity/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "活动列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/activity/list"),
  //     },
  //     {
  //       path: "order",
  //       name: "活动订单",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/activity/orderList"),
  //     },
  //     {
  //       path: "attr",
  //       name: "活动属性",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/activity/attrList"),
  //     },
  //     {
  //       path: "rank",
  //       name: "活动均速",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/activity/rankList"),
  //     },
  //     {
  //       path: "type",
  //       name: "活动类型",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/activity/typeList"),
  //     },
  //   ],
  // },
  // {
  //   path: "/knowledge",
  //   name: "知识",
  //   component: Layout,
  //   redirect: "/knowledge/list",
  //   component: () =>
  //     import(/* webpackChunkName: "views" */ "@/views/knowledge/list"),
  //   children: [],
  // },
  // {
  //   path: "/course",
  //   name: "课程",
  //   component: Layout,
  //   redirect: "/course/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "课程列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/course/list"),
  //     },
  //     {
  //       path: "order",
  //       name: "课程订单",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/course/courseOrder"),
  //     },
  //   ],
  // },
  // {
  //   path: "/cycling",
  //   name: "骑行管理",
  //   component: Layout,
  //   redirect: "/cycling/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "骑行列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/cycling/list"),
  //     },
  //     {
  //       path: "group",
  //       name: "骑友群",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/wechatgroup/list"),
  //     },
  //     {
  //       path: "cyclingRoute",
  //       name: "骑行路书列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/cyclingRoute/list"),
  //     },
  //   ],
  // },
  // {
  //   path: "/refundConfig",
  //   name: "退款配置管理",
  //   component: Layout,
  //   redirect: "/refundConfig/list",
  //   component: () =>
  //     import(/* webpackChunkName: "views" */ "@/views/refundConfig/list"),
  //   children: [],
  // },
  // {
  //   path: "/bannerManage",
  //   name: "广告管理",
  //   component: Layout,
  //   redirect: "/bannerManage/list",
  //   children: [
  //     {
  //       path: "list",
  //       name: "广告管理列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/bannerManage/list"),
  //     },
  //     {
  //       path: "adList",
  //       name: "广告位管理列表",
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ "@/views/bannerManage/adList"),
  //     },
  //   ],
  //   },
  {
    path: "/consultation",
    name: "咨询管理",
    component: Layout,
    redirect: "/consultation/conList",
    children: [
      {
        path: "conList",
        name: "咨询管理列表",
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/consultation/conList"),
      },
    ],
  },
  {
    path: "/systemConfigCenter",
    name: "系统配置中心",
    component: Layout,
    redirect: "/systemConfigCenter/config",
    children: [
      {
        path: "config",
        name: "系统配置",
        component: () =>
          import(/* webpackChunkName: "views" */ "@/views/systemConfigCenter/config"),
      },
    ],
  },
];
